//
//  BookShelfCell.m
//  第三组_阅读器
//
//  Created by My Mac on 2016/12/23.
//  Copyright © 2016年 My Mac. All rights reserved.
//

#import "BookShelfCell.h"

@interface BookShelfCell()
@property(nonatomic,strong) UIImageView * imgView;

@property(nonatomic,strong) UILabel * lable;

@end

@implementation BookShelfCell
-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if(self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]){
        _imgView = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, self.frame.size.width, ([UIScreen mainScreen].bounds.size.height-113)/3)];
        _imgView.image = [UIImage imageNamed:@"BookShelfCell"];
        
        _lable = [[UILabel alloc]initWithFrame:CGRectMake(0, 0, self.frame.size.width, ([UIScreen mainScreen].bounds.size.height-113)/3)];
        
        [_lable addSubview:_imgView];
        [self.contentView addSubview:_lable];
    }
    return self;
}
- (void)awakeFromNib {
    [super awakeFromNib];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
